FROM registry.cn-hangzhou.aliyuncs.com/base-linux/centos7.6:v1
MAINTAINER this is jkd8 image <boren>
ADD jdk-8u181-linux-x64.tar.gz /usr/local/
WORKDIR /usr/local/
RUN mv jdk1.8.0_181 /usr/local/java
ENV JAVA_HOME /usr/local/java
ENV JRE_HOME $JAVA_HOME/jre
ENV CLASSPATH $JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH
ENV PATH $JAVA_HOME/bin:$PATH
# 暴露出80端口
EXPOSE 80

CMD echo "success-------------ok"
CMD /bin/bash


